-- GENERATED SPELL FOR [Jotunheim Warrior] --


function spell0_29880(pUnit, Event) --@Chop,n/a--
pUnit:FullCastSpellOnTarget(43410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29880', 5318, 1)
end

function spell1_29880(pUnit, Event) --@Demoralize,n/a--
pUnit:FullCastSpellOnTarget(23262,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29880', 30340, 1)
end

function Sorts_29880(pUnit, Event)
local choix_sorts_29880 = math.random(0, 1)
if choix_sorts_29880 == 0 then
pUnit:RegisterEvent('spell0_29880', 1, 1)
end
if choix_sorts_29880 == 1 then
pUnit:RegisterEvent('spell1_29880', 1, 1)
end
end

function mob29880_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29880', math.random(1500, 3000), 1)
end

function mob29880_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29880_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29880_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29880, 1, 'mob29880_Action')
RegisterUnitEvent(29880, 2, 'mob29880_Leave')
RegisterUnitEvent(29880, 3, 'mob29880_Kill')
RegisterUnitEvent(29880, 4, 'mob29880_Die')
